
package com.happycat.mobile.service;
 
import com.happycat.mobile.dto.UserGetFreeGiftSaveDto;
import com.happycat.mobile.dto.UserGiveGiftSaveDto;
import com.happycat.mobile.model.UserGiftDetail;
import com.happycat.ResponseModel;
import com.happycat.ResponseHeaderModel;
import com.happycat.Pagination;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
/**
 * Module: UserGiftDetail.java
 * 
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-08-01
 * @Descriptions:
 */
public interface UserGiftDetailService extends IService<UserGiftDetail> {
	
	ResponseModel<UserGiftDetail> selectOne(UserGiftDetail userGiftDetail);
	
	ResponseHeaderModel	add(UserGiftDetail userGiftDetail);
	
	ResponseHeaderModel	modify(UserGiftDetail userGiftDetail);
	
	ResponseModel<Page<UserGiftDetail>> pageList(Pagination<UserGiftDetail>page);

	//领取礼物
    UserGiftDetail receiveFreeGift(UserGetFreeGiftSaveDto dto);

    //赠送礼物
    Boolean giveGift(UserGiveGiftSaveDto dto);
}